// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** deleteLoginInfo POST /api/loginInfo/delete */
export async function deleteLoginInfoUsingPOST(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/loginInfo/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getLoginInfoById GET /api/loginInfo/get */
export async function getLoginInfoByIdUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getLoginInfoByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLoginInfo_>('/api/loginInfo/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listLoginInfoByPage POST /api/loginInfo/list/page */
export async function listLoginInfoByPageUsingPOST(
  body: API.LoginInfoQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageLoginInfo_>('/api/loginInfo/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
